package com.twoGroup.boot.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.sql.Date;

/**
 * @ClassName
 * @Description TODO
 * @Author Xuyujie
 * @Date 2021/6/15 20:23
 * @Version 1.0
 **/
@ApiModel(value = "评论实体类")
public class Comment{
    @ApiModelProperty(value = "评论的id",required = true)
    private Integer commentId;
    @ApiModelProperty(value = "评论的内容",required = true)
    private String commentContent;
    @ApiModelProperty(value = "评论用户的id",required = true)
    private Integer userId;
    @ApiModelProperty(value = "评论的日期",required = true,notes = "由后台给出")
    private Date commentDate;
    @ApiModelProperty(value = "评论的星级",required = true,notes = "由前端判断传回数值")
    private Integer commentLevel;
    @ApiModelProperty(value = "商品的id",required = true)
    private Integer goodsId;
    @ApiModelProperty(value = "点赞数",notes = "由前端触发")
    private Integer commentLike;

    public Comment() {
    }

    public Comment(Integer commentId, String commentContent, Integer userId, Date commentDate, Integer commentLevel, Integer goodsId, Integer commentLike) {
        this.commentId = commentId;
        this.commentContent = commentContent;
        this.userId = userId;
        this.commentDate = commentDate;
        this.commentLevel = commentLevel;
        this.goodsId = goodsId;
        this.commentLike = commentLike;
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCommentDate() {
        return commentDate;
    }

    public void setCommentDate(Date commentDate) {
        this.commentDate = commentDate;
    }

    public Integer getCommentLevel() {
        return commentLevel;
    }

    public void setCommentLevel(Integer commentLevel) {
        this.commentLevel = commentLevel;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getCommentLike() {
        return commentLike;
    }

    public void setCommentLike(Integer commentLike) {
        this.commentLike = commentLike;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "commentId=" + commentId +
                ", commentContent='" + commentContent + '\'' +
                ", userId=" + userId +
                ", commentDate=" + commentDate +
                ", commentLevel=" + commentLevel +
                ", goodsId=" + goodsId +
                ", commentLike=" + commentLike +
                '}';
    }
}
